;
; $VER: Installer Script 1.0 for MDS Music Disk Libraries (04.01.2010)
;
; Author: dOc.K / mdS
;
; --------------------------------------------------------

(set #intro1 "\nInstallation of needed libraries if they are not yet present.\n\n")
(set #intro2 "dbplayer.library (Sebastian Jedruszkiewicz)\n")
(set #intro3 "ptplay.library (Ronald Hof, Timm S. Mueller, Per Johansson, Ilkka Lehtoranta)\n")
(set #intro4 "guigfx.library and render.library (TEK neoscientists)\n")
(set #intro5 "wizard.library (HAAGE & PARTNER Computer GmbH)\n\n")

(set #wrong_os "Hot Affairs needs at least OS 3.0 to run.\n")
(set #wrong_cpu "Hot Affairs needs at least a 68020 CPU to run.\n")

(set #dbplayer_msg "\nCopying dbplayer.library ...")
(set #ptplay_msg "\nCopying ptplay.library ...")
(set #guigfx_msg "\nCopying guigfx.library ...")
(set #render_msg "\nCopying render.library ...")
(set #wizard_msg "\nCopying wizard.library ...")

(set #done "\nInstallation complete.\n")

; --------------------------------------------------------

(if (= @language "deutsch")
(
(set #intro1 "\nInstallation der bentigten Bibliotheken, falls nicht bereits vorhanden.\n\n")
(set #intro2 "dbplayer.library (Sebastian Jedruszkiewicz)\n")
(set #intro3 "ptplay.library (Ronald Hof, Timm S. Mueller, Per Johansson, Ilkka Lehtoranta)\n")
(set #intro4 "guigfx.library und render.library (TEK neoscientists)\n")
(set #intro5 "wizard.library (HAAGE & PARTNER Computer GmbH)\n\n")

(set #wrong_os "Hot Affairs setzt mindestens OS 3.0 voraus.\n")
(set #wrong_cpu "Hot Affairs bentigt mindestens einen 68020 Prozessor.\n")

(set #dbplayer_msg "\nKopieren der dbplayer.library ...")
(set #ptplay_msg "\nKopieren der ptplay.library ...")
(set #guigfx_msg "\nKopieren der guigfx.library ...")
(set #render_msg "\nKopieren der render.library ...")
(set #wizard_msg "\nKopieren der wizard.library ...")

(set #done "\nInstallation komplett.\n")
)
)

; --------------------------------------------------------

(welcome #intro1 #intro2 #intro3 #intro4 #intro5)

; --------------------------------------------------------

(set #os_ver (getversion "exec.library" (resident)))
(if (< #os_ver (* 39 65536)) (abort #wrong_os))

(set #cpu_type (database "cpu"))
(if (< #cpu_type "68020") (abort #wrong_cpu))

; --------------------------------------------------------

(complete 0)

(copylib
    (source "install/dbplayerlib/dbplayer.library") (dest "LIBS:")
    (prompt #dbplayer_msg) (confirm) (help @copylib-help)
)

(complete 20)

(copylib
    (source "install/ptplaylib/libs/ptplay.library") (dest "LIBS:")
    (prompt #ptplay_msg) (confirm) (help @copylib-help)
)

(complete 40)

(copylib
    (source "install/guigfxlib/libs/guigfx.library") (dest "LIBS:")
    (prompt #guigfx_msg) (confirm) (help @copylib-help)
)

(complete 60)

(copylib
    (source "install/renderlib/libs/render.library") (dest "LIBS:")
    (prompt #render_msg) (confirm) (help @copylib-help)
)

(complete 80)

(copylib
    (source "install/wizardlib/wizard.library") (dest "LIBS:")
    (prompt #wizard_msg) (confirm) (help @copylib-help)
)

(complete 100)

; --------------------------------------------------------

(exit #done (quiet))
